﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Security.Cryptography.X509Certificates;
using System.ServiceModel.Configuration;
using System.Threading;

namespace PSE.Framework.Common.Security.Services.Configuration
{//TODO:Verificar se isso ira existir
    /// <summary>
    /// Sessão de configuração de certificados
    /// </summary>
    public class CertificateConfigurationSection : ConfigurationSection
    {
        #region Configuration Properties
        /// <summary>
        /// Certificado STS
        /// </summary>
        [ConfigurationProperty("stsAuthorityCertificate")]
        public CertificateConfigurationElement STSAuthorityCertificate
        {
            get
            { return (CertificateConfigurationElement)this["stsAuthorityCertificate"]; }
        }

        /// <summary>
        /// Certificado Servico
        /// </summary>
        [ConfigurationProperty("serviceCertificate")]
        public CertificateConfigurationElement ServiceCertificate
        {
            get
            { return (CertificateConfigurationElement)this["serviceCertificate"]; }
        }
        #endregion
    }
}
